package com.hd.common.base;

import java.io.Serializable;
import java.util.List;
/**
 * <p>Title:dao接口</p>
 * <p>Description:</p>
 * <p>copyright:</p>
 * <p>Date: 2008-11-22 零点</p>
 * @version V1.0
 * @amendment history:
 */
public interface BaseDao <E>{

	public Object getById(Serializable id);
	
	public List<E> findAll();
	
	public void saveOrUpdate(E entity);
	
	public void save(E entity);
	
	public void deleteById(Serializable id);
	
	public void update(E entity);
	
	public boolean isUnique(E entity, String uniquePropertyNames);
	
	//public void flush();
	
}
